package com.bwie.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.bwie.domain.Seckill;
import com.bwie.service.SeckillService;
import com.bwie.mapper.SeckillMapper;
import com.bwie.utils.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 36167
* @description 针对表【seckill(秒杀活动表)】的数据库操作Service实现
* @createDate 2025-03-13 14:13:33
*/
@Service
public class SeckillServiceImpl extends ServiceImpl<SeckillMapper, Seckill>
    implements SeckillService{

    @Autowired
    SeckillMapper seckillMapper;

    @DS("xty")
    @Override
    public R list1() {
        List<Seckill> seckills = seckillMapper.selectList(null);
        return R.OK(seckills);
    }


    @Override
    public R list2() {
        List<Seckill> seckills = seckillMapper.selectList(null);
        return R.OK(seckills);
    }
}




